package com.xiaoq.positionmarket.entity;

import com.xiaoq.MongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Created by chenjh on 2018/4/8.
 */
@Entity(value="user_track",noClassnameStored=true)
public class UserTrackEntity extends MongoEntity {

    private String userId;
    private Double longitude;
    private Double latitude;
    private String province;
    private String city;
    private String cityCode;
    private String district;
    private String street;
    private String streetNum;
    private String adCode;
    private String regId;
    private String osType;

    private double[] loc = new double[2];

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
        loc[0] = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
        loc[1] = latitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getStreetNum() {
        return streetNum;
    }

    public void setStreetNum(String streetNum) {
        this.streetNum = streetNum;
    }

    public String getAdCode() {
        return adCode;
    }

    public void setAdCode(String adCode) {
        this.adCode = adCode;
    }

    public String getRegId() {
        return regId;
    }

    public void setRegId(String regId) {
        this.regId = regId;
    }

    public String getOsType() {
        return osType;
    }

    public void setOsType(String osType) {
        this.osType = osType;
    }

    public double[] getLoc() {
        return loc;
    }
}
